<table>
	<tr>
		<td id="funfacts">AAA</td>
	</tr>
	<tr>
		<td><img style="width: 250px; height: 150px"
			src="https://www.image.net/xads/images/new_inet/new-login-window-image7.png"></img>
		<script>
		<!--
function cbfunc(o){
alert("alberto");
var facts;
facts = document.getElementById('funfacts');
	
if (facts) {
	alert("kkk");
	facts.contentText="jjjj";
	alert("kkk2222");
    var data = o.query.results.tr[1].td[1].p;
    var out = document.createElement('p');
    out.className = 'fact';
    facts.insertBefore(out, facts.lastChild);
    function seed(){
        //out.innerHTML = data.content;
        out.innerHTML = data;
    }
    //keys = o.query.results.tr;
    //data = ConvertJsonToTable(o.query.results.tr, keys, 'funfacts', 'tabstyle');
    //out.innerHTML = data;
    seed();
}
}
		//-->
</script> <script>
<!--
function callYQL(){
	alert("jj");
	var a = 2;
	var b = 1;
	//Oxford
	//var filename = "http://query.yahooapis.com/v1/public/yql?q=select%20*%20from%20html%20where%20url%3D%22http%3A%2F%2Fwww.sbs.ox.ac.uk%2Fdegrees%2Fmba%2FPages%2Fprocess.aspx%22%20and%20xpath%3D%22%2F%2Ftable%5B%40class%3D'ms-rteTable-1'%5D%2Ftbody%2Ftr%22&format=json&diagnostics=true&callback=cbfunc";
	//LBS
	//var filename = "http://query.yahooapis.com/v1/public/yql?q=select%20*%20from%20html%20where%20url%3D'http%3A%2F%2Fwww.london.edu%2Fprogrammes%2Fmba%2Fapplying.html'%20and%20xpath%3D'%2F%2Fdiv%5B%40id%3D%22p8036%22%5D%2Ftable%2Ftbody%2Ftr'&format=json&diagnostics=true&callback=cbfunc";
	//INSEAD
	var filename = "http://query.yahooapis.com/v1/public/yql?q=select%20*%20from%20html%20where%20url%3D%22http%3A%2F%2Fmba.insead.edu%2Fadmissions%2Fdates_deadlines.cfm%22%20and%20xpath%3D%22%2F%2Fdiv%5B%40id%3D'content'%5D%2Ftable%5B1%5D%2Ftr%22&format=json&diagnostics=true&callback=cbfunc";
	var fileref = document.createElement("script");
	fileref.setAttribute("type", "text/javascript");
	fileref.setAttribute("src", filename);
	if (a > b) {
		if (typeof fileref != "undefined") {
			root.getElementById('funfacts').appendChild(fileref);
		}
	}
}
alert("hh");
callYQL();
//-->
</script>
</td>
	</tr>
</table>